package com.pig.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.pig.pojo.User;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface UserMapper extends BaseMapper<User> {
    /**分页查询用户信息*/
    @Select("select * from p_users order by updated desc limit #{startIndex},#{limit}")
    List<User> findUserByPage(int startIndex, int limit);

}
